import React , { Component } from "react";
import ProvideContext from "./provideContext"
// import { ThemeButton } from "./themeButton";
import { Toolbar } from "./toolBar";

class ContextIndex extends  Component{
  constructor(props){
    super(props)
    this.state = {
      title : "这个组件研究context"
    }
  }

  render(){
    return(
      <div>
        <div>{this.state.title}</div>
        <ProvideContext>
          <Toolbar/>
        </ProvideContext>
      </div>
    )
  }
}
export default ContextIndex;